layui.use(['element', 'common'], function() {
	var element = layui.element
	var common = layui.common;
	
	var n = 0;
	setInterval(function() {
		// 大王破坏进度
		n += Math.random() * 20 | 0;
		if (n > 100) {
			common.toUrl(common.ctxPath + '/');
		}
		element.progress('progress', n + '%');
	}, 300+Math.random()*1000);
});